﻿<!-- Copyright ©2007-2011, Technische Universitaet Muenchen
   ====================================================================================================
  
   Last Changed by       $Author: then $
   Last Changed Date     $LastChangedDate: 2009-05-02 19:30:48 +0200 (Sat, 02 May 2009) $
   Last Changed Revision $Rev: 117 $
  
   ====================================================================================================
-->

<VMXT:VModellPage x:Class="Tum.CollabXT.VModellXT.VModellTailoringPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:res="clr-namespace:Tum.CollabXT.VModellXT.Resources"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:CollabXT="clr-namespace:Tum.CollabXT;assembly=Tum.CollabXT"
    xmlns:VMXT="clr-namespace:Tum.CollabXT.VModellXT"
    Title="V-Modell XT" Margin="0" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" d:DesignWidth="500" d:DesignHeight="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="32" />
            <RowDefinition Height="28" />
            <RowDefinition Height="28" />
            <RowDefinition Height="28" />
            <RowDefinition Height="24" />
            <RowDefinition/>
            <RowDefinition Height="28" />
            <RowDefinition Height="28" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="130" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>

        <Label Grid.ColumnSpan="3" Grid.Row="0" Name="labelPleaseSpecifyProject" FontWeight="Bold" Content="{x:Static res:Language.labelPleaseSpecifyProject_TEXT}"/>

        <Label Grid.Row="1" Grid.Column="0" FontWeight="Bold" Content="{x:Static res:Language.ConfigPage_TailoringProjectName}"/>
        <TextBox Margin="2" Grid.Row="1" Grid.Column="1" Name="textBoxProjectName" />
        
        <Label Grid.Row="2" Grid.Column="0" FontWeight="Bold" Content="{x:Static res:Language.ConfigPage_TailoringProjectType}"/>
        <ComboBox Margin="2" Grid.Column="1" Grid.Row="2" Height="23" Name="comboBoxProjectType" VerticalAlignment="Top" HorizontalAlignment="Stretch" SelectionChanged="comboBoxProjectType_SelectionChanged" />
        
        <Label Grid.Row="3" Grid.Column="0" FontWeight="Bold" Content="{x:Static res:Language.ConfigPage_TailoringProjectTypeVariant}"/>
        <ComboBox Margin="2" Grid.Column="1" Grid.Row="3" Height="23" Name="comboBoxProjectTypeVariant" VerticalAlignment="Top" HorizontalAlignment="Stretch" SelectionChanged="comboBoxProjectTypeVariant_SelectionChanged" />

        <Label Grid.Row="4" Grid.Column="0" FontWeight="Bold" Content="{x:Static res:Language.ConfigPage_TailoringProjectCharacteristics}"/>
        <ItemsControl Margin="2" Grid.Row="4" Grid.Column="1" Grid.RowSpan="2" Name="listBoxCharacteristics">
            <ItemsControl.ItemTemplate>
                <DataTemplate>
                    <DockPanel>
                        <Label DockPanel.Dock="Left" Width="220" Content="{Binding Path=Name}" />
                        <ComboBox Margin="2" Height="23" HorizontalAlignment="Stretch" ItemsSource="{Binding Path=Values}"  SelectedItem="{Binding Path=DefaultValue, Mode=TwoWay}">
                            <ComboBox.ItemTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding Path=Name}" />
                                </DataTemplate>
                            </ComboBox.ItemTemplate>
                        </ComboBox>
                    </DockPanel>
                </DataTemplate>
            </ItemsControl.ItemTemplate>
        </ItemsControl>

        <CheckBox Margin="4" Grid.Column="0" Grid.Row="6" Grid.ColumnSpan="2" Name="checkBoxSaveTailoredModel" Content="{x:Static res:Language.ConfigPage_TailoringSaveModel}" FontWeight="Bold" Checked="CheckBoxSaveTailoredModel_Checked" />
        <Label Height="28" Margin="15 0 0 0" Name="labelSaveModelPath" VerticalAlignment="Center" Grid.Row="7" Grid.Column="0" FontWeight="Bold"
               Content="{x:Static res:Language.ConfigPage_TailoringSavePath}"/>
        <DockPanel Grid.Row="7" Grid.Column="1">
            <Label Height="28" Margin="0,0,5,0" Name="labelSaveModelPathValue" VerticalAlignment="Center" HorizontalAlignment="Stretch" Foreground="Red"/>
            <Button DockPanel.Dock="Right" Margin="0 2 2 2" Width="124" Name="buttonSetSaveModelPath" HorizontalAlignment="Right" Content="{x:Static res:Language.buttonBrowse_TEXT}" Click="buttonSetSaveModelPath_Click" />
        </DockPanel>
    </Grid>
</VMXT:VModellPage>
